#ifndef _COREHEAP_H_
#define _COREHEAP_H_

#define HEAP_INT unsigned char

#define PAGE_SIZE 8
#define PAGE_MAX  128
#define HEP_CHAIN_END 0

typedef struct {
    HEAP_INT PageIndex;
    HEAP_INT PageNum;
    HEAP_INT NextBlock;
}stBlock;

void Heap_Init(void);
void * Heap_Request(UInt16 size);
void * Heap_Release(void *pBuf);

#endif /* _COREHEAP_H_ */
